package cn.prophet.controller;

import cn.prophet.service.CommonService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.Map;

@Controller
@RequestMapping("common")
public class CommonController {
    @Resource
    private CommonService commonService;
    @GetMapping("checkVersion")
    @ResponseBody
    public Map<String,String> getServerVersion(){
        Map<String,String> map = commonService.getServerVersion();

        return map;
    }
}
